package com.toppitch.site.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;

import com.toppitch.site.feed.RssThread;

public class BaseController {
	@Autowired
	private RssThread rssThread;

	protected void setupNYTNews(ModelMap modelMap) {
		modelMap.addAttribute("nytItems", rssThread.getItems());
		modelMap.addAttribute("nytItemsExists", !rssThread.getItems().isEmpty());
	}
}
